package com.yungu.swift.system.finance.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.finance.model.dto.FinancePrepayDto;

import java.util.List;
import java.util.Map;

public interface FinancePrepayMapper extends IMapper<FinancePrepayDto> {
    /**
     * 关闭其他失效的订单
     *
     * @param orderUuid 订单主键
     * @return int
     * @version 1.1.0-SNAPSHOT
     * @since 2018-07-02 11:19
     */
    Integer disablePaying(String orderUuid);

    /**
     * 关闭其他失效的订单
     *
     * @param params 参数集合
     * @return List
     * @version 1.1.0-SNAPSHOT
     * @since 2018-07-02 11:19
     */
    List<FinancePrepayDto> findAvailablePrepay(Map<String, Object> params);
}